export default{
    state:{
        list:[],
        order_id: localStorage.getItem('shop_orderId') || '',
        lists:[],
        addr:{}
    },
    getters:{

    },
    mutations:{
        initOrder(state,orderId){
            state.list=orderId
            state.order_id=orderId[0].order_id
            localStorage.setItem('shop_orderId',orderId[0].order_id)
        },
        initList(state,orderIds){
            state.lists=orderIds
            localStorage.setItem('shop',JSON.stringify(state.lists))
        },
        initAddr(state,addr){
            state.addr=addr
            localStorage.setItem('addr',JSON.stringify(state.addr))
        }
    },
    actions:{

    }
}